|
Quaqua 4.4.7 2008-07-16 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
ch.randelshofer.quaqua.filechooser.FileSystemViewFilter
ch.randelshofer.quaqua.filechooser.QuaquaFileSystemView
ch.randelshofer.quaqua.filechooser.WindowsFileSystemView
public class WindowsFileSystemView
WindowsFileSystemView provides a Aqua-style view on the windows file system.
| Field Summary |
|---|
| Fields inherited from class ch.randelshofer.quaqua.filechooser.FileSystemViewFilter |
|---|
target |
| Constructor Summary | |
|---|---|
WindowsFileSystemView()
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.io.File |
getChild(java.io.File parent,
java.lang.String fileName)
|
java.io.File |
getComputer()
Returns the file that represents this computer node. |
java.io.File |
getDefaultDirectory()
Return the user's default starting directory for the file chooser. |
java.io.File |
getHomeDirectory()
|
java.io.File[] |
getRoots()
Returns all root partitions on this system. |
java.lang.String |
getSystemDisplayName(java.io.File f)
Name of a file, directory, or folder as it would be displayed in a system file browser. |
javax.swing.Icon |
getSystemIcon(java.io.File f)
Icon for a file, directory, or folder as it would be displayed in a system file browser. |
java.lang.String |
getSystemTypeDescription(java.io.File f)
Type description for a file, directory, or folder as it would be displayed in a system file browser. |
java.io.File |
getSystemVolume()
Returns the file that represents the system (boot) volume of this computer. |
boolean |
isComputerNode(java.io.File dir)
Used by UI classes to decide whether to display a special icon for a volumesFolder node, e.g. |
boolean |
isDrive(java.io.File dir)
Used by UI classes to decide whether to display a special icon for drives or partitions, e.g. |
boolean |
isFileSystem(java.io.File f)
Checks if f represents a real directory or file as opposed to a
special folder such as "Desktop". |
boolean |
isFileSystemRoot(java.io.File dir)
Is dir the root of a tree in the file system, such as a drive or partition. |
boolean |
isFloppyDrive(java.io.File dir)
Used by UI classes to decide whether to display a special icon for a floppy disk. |
boolean |
isParent(java.io.File folder,
java.io.File file)
On Windows, a file can appear in multiple folders, other than its parent directory in the filesystem. |
boolean |
isRoot(java.io.File f)
Determines if the given file is a root in the navigatable tree(s). |
java.lang.Boolean |
isTraversable(java.io.File f)
Returns true if the file (directory) can be visited. |
| Methods inherited from class ch.randelshofer.quaqua.filechooser.QuaquaFileSystemView |
|---|
createFileView, getQuaquaFileSystemView |
| Methods inherited from class ch.randelshofer.quaqua.filechooser.FileSystemViewFilter |
|---|
createFileObject, createFileObject, createNewFolder, getFiles, getParentDirectory, isHiddenFile |
| Methods inherited from class javax.swing.filechooser.FileSystemView |
|---|
createFileSystemRoot, getFileSystemView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowsFileSystemView()
| Method Detail |
|---|
public java.io.File getComputer()
QuaquaFileSystemView
getComputer in class QuaquaFileSystemViewpublic java.io.File getSystemVolume()
QuaquaFileSystemView
getSystemVolume in class QuaquaFileSystemViewpublic java.io.File[] getRoots()
getRoots in class FileSystemViewFilterpublic java.lang.Boolean isTraversable(java.io.File f)
isTraversable in class FileSystemViewFilterf - the File
true if the file/directory can be traversed, otherwise falseJFileChooser.isTraversable(java.io.File),
FileView.isTraversable(java.io.File)public java.lang.String getSystemDisplayName(java.io.File f)
getSystemDisplayName in class FileSystemViewFilterf - a File object
JFileChooser.getName(java.io.File)public java.lang.String getSystemTypeDescription(java.io.File f)
getSystemTypeDescription in class FileSystemViewFilterf - a File object
JFileChooser.getTypeDescription(java.io.File)public javax.swing.Icon getSystemIcon(java.io.File f)
getSystemIcon in class FileSystemViewFilterf - a File object
JFileChooser.getIcon(java.io.File)
public boolean isParent(java.io.File folder,
java.io.File file)
isParent in class FileSystemViewFilterfolder - a File object repesenting a directory or special folderfile - a File object
true if folder is a directory or special folder and contains file.
public java.io.File getChild(java.io.File parent,
java.lang.String fileName)
getChild in class FileSystemViewFilterparent - a File object repesenting a directory or special folderfileName - a name of a file or folder which exists in parent
new
File(parent, fileName) except when parent and child are both
special folders, in which case the File is a wrapper containing
a ShellFolder object.public boolean isFileSystem(java.io.File f)
f represents a real directory or file as opposed to a
special folder such as "Desktop". Used by UI classes to decide if
a folder is selectable when doing directory choosing.
isFileSystem in class FileSystemViewFilterf - a File object
true if f is a real file or directory.public boolean isFileSystemRoot(java.io.File dir)
isFileSystemRoot in class FileSystemViewFilterdir - a File object representing a directory
true if f is a root of a filesystemisRoot(java.io.File)public boolean isDrive(java.io.File dir)
isDrive in class FileSystemViewFilterdir - a directory
false alwayspublic boolean isFloppyDrive(java.io.File dir)
isFloppyDrive in class FileSystemViewFilterdir - a directory
false alwayspublic boolean isComputerNode(java.io.File dir)
isComputerNode in class FileSystemViewFilterdir - a directory
false alwayspublic java.io.File getHomeDirectory()
getHomeDirectory in class FileSystemViewFilterpublic java.io.File getDefaultDirectory()
getDefaultDirectory in class FileSystemViewFilterFile object representing the default
starting folderpublic boolean isRoot(java.io.File f)
FileSystemViewFilterC:\, D:\, etc. Unix has one root,
the "/" directory.
The default implementation gets information from the ShellFolder class.
isRoot in class FileSystemViewFilterf - a File object representing a directory
true if f is a root in the navigatable tree.FileSystemViewFilter.isFileSystemRoot(java.io.File)
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||